package com.hctforgreen.greenservice;

import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageButton;
import android.widget.TextView;

import com.hctforgreen.greenservice.utils.VersionUtil;

/**
 * 关于我们页面(软件设置页内)
 * 
 * @author Tallen Zhai
 * 
 */
public class AboutUsActivity extends ParentActivity {
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_about_us);
		initSkinLayout();
		initTitleButtonBar();
		initWindow();
	}


	private void initTitleButtonBar() {
		final TextView titleTv = (TextView) findViewById(R.id.tv_title);
		titleTv.setText(getString(R.string.about_us_title_hint));

		final ImageButton backBtn = (ImageButton) findViewById(R.id.btn_back);
		backBtn.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View v) {
				finish();
			}
		});
	}

	private void initWindow() {
		final TextView versionStatusTv = (TextView) findViewById(R.id.tv_version_status);
		versionStatusTv.setText("V" + VersionUtil.getAppVersionName(this));
	}

}
